<?php echo '<?xml version="1.0" encoding="utf-8" standalone="yes"?>'; ?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
    <title><?php echo $this->folder; ?></title>
    <link><?php echo $this->webSiteURL.'images/'.$this->folder.'/'.$this->folder.'.xml'; ?></link>
    <description><?php echo $this->folder; ?> gallery from <?php echo $this->webSiteURL; ?></description>
<?php if(is_array($this->images) && count($this->images) > 0): ?>
<?php foreach ($this->images as $image): ?>
    <item>
        <title><?php echo str_replace('-',' ',ToolsHelper::cropType($image)); ?></title>
        <media:description>Gallery "<?php echo $this->folder; ?>": <?php echo $image; ?></media:description>
        <link><?php echo $this->webSiteURL.'images/'.$this->folder.'/original/'.$image; ?></link>
        <media:thumbnail url="<?php echo $this->webSiteURL.'images/'.$this->folder.'/'.$this->useFolder.'/'.$image; ?>"/>
        <media:content url="<?php echo $this->webSiteURL.'images/'.$this->folder.'/original/'.$image; ?>"/>
    </item>
<?php endforeach; ?>
<?php endif; ?>
</channel>
</rss>
